import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import '../widgets/Iconfonts.dart';


class ImagePage extends StatelessWidget {
  final SystemUiOverlayStyle _style = SystemUiOverlayStyle(statusBarColor: Colors.transparent);
  @override
  Widget build(BuildContext context) {
    SystemChrome.setSystemUIOverlayStyle(_style);
    // TODO: implement build
    return MaterialApp(
      home: ImageWidget(),
      theme: ThemeData(primarySwatch: Colors.yellow),
    );
  }
}

class ImageWidget extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    return _ImagePage();
  }
}

class _ImagePage extends State<StatefulWidget> {

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text("Image Page"),
      ),
      body: Column(
        children: <Widget>[
          Image.asset("res/drawable/mv.jpg",
          fit: BoxFit.cover,),
//          Image.network("http://gionchat.com/static/upload/2019/06/26/719b4cabe5f85ac3ee146ce849f45591.jpg"),
          Icon(Iconfonts.apple,color: Colors.redAccent,),
          Icon(Iconfonts.huawei),
          Icon(Iconfonts.oneplus),
          Icon(Iconfonts.oppo),
          Icon(Iconfonts.vivo),
          Icon(Iconfonts.xiaomi),

        ],
      ),
    );
  }
}